<?php

declare(strict_types=1);

/*
 * This file is part of the tenancy/tenancy package.
 *
 * Copyright Tenancy for Laravel
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @see https://tenancy.dev
 * @see https://github.com/tenancy
 */

namespace Tenancy\Lifecycle\Contracts;

interface ResolvesHooks
{
    public function addHook($hook): static;

    public function handle($event, ?callable $fire = null);

    public function getHooks(): array;

    public function setHooks(array $hooks): static;
}
